﻿<UserControl x:Class="MyFloridaHouse.SilverlightOpenDistricts.xPrintMap"
    xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:m="clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl"
    mc:Ignorable="d"
    d:DesignHeight="500" d:DesignWidth="600"
    Visibility="{Binding isPrintMapActive, Converter={StaticResource ConvertBoolToVisibility}}"
    >


    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="25"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid x:Name="grdContent" Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="106*" />
                <ColumnDefinition Width="494*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="324*" />
                <RowDefinition Height="68*" />
                <RowDefinition Height="83*" />
            </Grid.RowDefinitions>
            <m:Map x:Name="myPrintMap" CredentialsProvider="" 
               Mode="Road" 
               Center="28.0, -82.0"
               NavigationVisibility="Collapsed"
               CopyrightVisibility="Collapsed"
               ZoomLevel="6"
              Margin="0,0,-2,0" Grid.RowSpan="3" Grid.ColumnSpan="2" />
        </Grid>
        <!--<Button x:Name="btnPrint" Content="Print" Grid.Row="1" Click="btnPrint_Click"></Button>-->

        <Button x:Name="btnPrint" Content="Print" Command="{Binding CmdPrintMapOK}" Grid.Row="1"></Button>

        <!--<Button x:Name="CancelButton" Content="Cancel" Command="{Binding CmdFilePrintCancel}" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0"  />
        <Button x:Name="OKButton" Content="OK" Command="{Binding CmdFilePrintOK}" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0"  />-->
    </Grid>


</UserControl>
